<include file="Public:header"/>
<a href="{:U('/Link')}">返回</a>
<a href="{:U('/Link/add')}">添加</a>
<table>
    <tr>
        <th>#</th>
        <th>标题</th>
        <th>等级</th>
        <th>排序</th>
        <th>操作</th>
    </tr>
    <foreach name="links" item="l">
        <tr>
            <td>{$l.itemid}</td>
            <td>{$l.title}</td>
            <td>{$l.level}</td>
            <td>{$l.list_order}</td>
            <td>
                <a href="{:U('/Link/edit/id/'.$l['itemid'])}">编辑</a>
            </td>
        </tr>
    </foreach>
    <tr>
        <td colspan="5">{$page}</td>
    </tr>
</table>
<include file="Public:footer"/>